package com.tansun.easycare.rule.front.entity;

import org.hibernate.validator.constraints.Length;

import com.tansun.easycare.core.persistence.DataEntity;

/**
 * 入口参数Entity
 * @author WYH
 * @version 2018-06-04
 */
public class RuleEnterpointParam extends DataEntity<RuleEnterpointParam> {
	
	private static final long serialVersionUID = 1L;
	private String projectCode;		// 项目代码
	private String enterCode;		// 入口点代码
	private String datasourceId;		// 数据源ID
	private String dsTable;		// 表名
	private String dsCol;		// 列名
	private String dsRowKey;		// 从数据模型中获取数据的KEY
	private String dsDataparam;		// 数据模型
	private String paramType;		// 输入输出类型
	
	public RuleEnterpointParam() {
		super();
	}

	public RuleEnterpointParam(String id){
		super(id);
	}

	@Length(min=0, max=50, message="项目代码长度必须介于 0 和 50 之间")
	public String getProjectCode() {
		return projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}
	
	@Length(min=0, max=50, message="入口点代码长度必须介于 0 和 50 之间")
	public String getEnterCode() {
		return enterCode;
	}

	public void setEnterCode(String enterCode) {
		this.enterCode = enterCode;
	}
	
	@Length(min=0, max=50, message="数据源ID长度必须介于 0 和 50 之间")
	public String getDatasourceId() {
		return datasourceId;
	}

	public void setDatasourceId(String datasourceId) {
		this.datasourceId = datasourceId;
	}
	
	@Length(min=0, max=256, message="表名长度必须介于 0 和 256 之间")
	public String getDsTable() {
		return dsTable;
	}

	public void setDsTable(String dsTable) {
		this.dsTable = dsTable;
	}
	
	@Length(min=0, max=10, message="列名长度必须介于 0 和 10 之间")
	public String getDsCol() {
		return dsCol;
	}

	public void setDsCol(String dsCol) {
		this.dsCol = dsCol;
	}
	
	@Length(min=0, max=50, message="从数据模型中获取数据的KEY长度必须介于 0 和 50 之间")
	public String getDsRowKey() {
		return dsRowKey;
	}

	public void setDsRowKey(String dsRowKey) {
		this.dsRowKey = dsRowKey;
	}
	
	@Length(min=0, max=50, message="数据模型长度必须介于 0 和 50 之间")
	public String getDsDataparam() {
		return dsDataparam;
	}

	public void setDsDataparam(String dsDataparam) {
		this.dsDataparam = dsDataparam;
	}
	
	@Length(min=0, max=5, message="输入输出类型长度必须介于 0 和 5 之间")
	public String getParamType() {
		return paramType;
	}

	public void setParamType(String paramType) {
		this.paramType = paramType;
	}
	
}